/**
 * 账户信息
 */
var mongoose = require('mongoose'),
    Schema = mongoose.Schema,
    ObjectId = Schema.ObjectId;

var _RoleAuthority = new Schema({
    roleId: {type: ObjectId},   // 角色ID
    authId: {type: ObjectId},   // 权限ID
    updateId: {type: ObjectId}, // 更新人
    updateDt: {type: Date},     // 更新时间
    createId: {type: ObjectId}, // 创建人
    createDt: {type: Date}      // 创建时间
});

mongoose.model('role_authority', _RoleAuthority);